package cn.edu.scau.cmi.dengzejun.chapter05;

public class MainClass {
	public static void main(String agrs[]) {
		Village reimu=new Village("Reimu");
		Village marisa=new Village("Marisa");
		reimu.peopleNumber=100;
		marisa.peopleNumber=150;
		Village.treeAmount=200;
		int leftTree=Village.treeAmount;
		System.out.println("Forest has "+leftTree+" trees");
		reimu.TreePlanting(50);
		leftTree=marisa.LookTreeAmount();
		System.out.println("Forest has "+leftTree+" trees");
		marisa.FellTree(70);
		leftTree=Village.LookTreeAmount();
		System.out.println("Forset has "+leftTree+" trees");
		System.out.println("The number of people of "+reimu.name+" is "+reimu.peopleNumber);
		reimu.AddPeopleNumber(12);
		System.out.println("The number of people of "+reimu.name+" is "+reimu.peopleNumber);
		System.out.println("The number of people of "+marisa.name+" is "+ marisa.peopleNumber);
		marisa.AddPeopleNumber(10);
		System.out.println("The number of people of "+marisa.name+" is "+ marisa.peopleNumber);
	}
}	
